﻿namespace EyeOpen.Domain
{
	using System.ComponentModel.DataAnnotations;

	public class ContentLocalized : UniqueEntity
	{
		[Required]
		[StringLength(20, MinimumLength = 3)]
		public string Text { get; set; }

		[Required]
		[StringLength(200)]
		public string Title { get; set; }

		[Required]
		[StringLength(200)]
		public string Keywords { get; set; }

		[Required]
		[StringLength(200)]
		public string Description { get; set; }

		[Required]
		[MaxLength]
		[CustomValidation(typeof(XmlValidator), "Validate")]
		public string Body { get; set; }

		[Required]
		public Content Content { get; set; }

		[Required]
		public Language Language { get; set; }

		[StringLength(200, MinimumLength = 3)]
		public string Path { get; set; }

		[Required]
		[Range(0, 200)]
		public int Order { get; set; }
	}
}